package com.hsxshop.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by wangchongya on 17/7/17.
 */
@Entity
@Table(name = "nhsx_isupply")
public class ISupply {

    private int id;
    private String serialNum;
    private int userId;
    private String title;
    private String fishName;
    private String fishInfo;
    private int quantity;
    private String unit;
    private int unitWeight;
    private int price;
    private String tradePlace;
    private int townId;
    private String createTime;
    private String updateTime;
    private String displayTime;
    private String expireTime;
    private int state;
    private int generateOrder;
    private int displayType;
    private String remark;
    private String images;
    private int lowBuyQuantity;
    private int storage;
    public ISupply(){}
    public ISupply(int id, String serialNum, int userId, String title, String fishName, String fishInfo, int quantity, String unit, int unitWeight, int price, String tradePlace, int townId, String createTime, String updateTime, String displayTime, String expireTime, int state, int generateOrder, int displayType, String remark, String images,int lowBuyQuantity,int storage){
        this.id= id;
        this.serialNum=serialNum;
        this.userId=userId;
        this.title=title;
        this.fishName=fishName;
        this.fishInfo=fishInfo;
        this.quantity=quantity;
        this.unit=unit;
        this.unitWeight=unitWeight;
        this.price=price; this.tradePlace=tradePlace;
        this.townId=townId;
        this.createTime=createTime;
        this.updateTime=updateTime;
        this.displayTime=displayTime;
        this.expireTime=expireTime;
        this.state=state;
        this.generateOrder=generateOrder;
        this.displayType=displayType;
        this.remark=remark;
        this.images=images;
        this.lowBuyQuantity=lowBuyQuantity;
        this.storage=storage;
    }

    @Id
    @GeneratedValue(generator="increment")
    @GenericGenerator(name="increment", strategy = "increment")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getFishName() {
        return fishName;
    }

    public void setFishName(String fishName) {
        this.fishName = fishName;
    }

    public String getFishInfo() {
        return fishInfo;
    }

    public void setFishInfo(String fishInfo) {
        this.fishInfo = fishInfo;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getUnitWeight() {
        return unitWeight;
    }

    public void setUnitWeight(int unitWeight) {
        this.unitWeight = unitWeight;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getTradePlace() {
        return tradePlace;
    }

    public void setTradePlace(String tradePlace) {
        this.tradePlace = tradePlace;
    }

    public int getTownId() {
        return townId;
    }

    public void setTownId(int townId) {
        this.townId = townId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getDisplayTime() {
        return displayTime;
    }

    public void setDisplayTime(String displayTime) {
        this.displayTime = displayTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getGenerateOrder() {
        return generateOrder;
    }

    public void setGenerateOrder(int generateOrder) {
        this.generateOrder = generateOrder;
    }

    public int getDisplayType() {
        return displayType;
    }

    public void setDisplayType(int displayType) {
        this.displayType = displayType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public int getLowBuyQuantity() {
        return lowBuyQuantity;
    }

    public void setLowBuyQuantity(int lowBuyQuantity) {
        this.lowBuyQuantity = lowBuyQuantity;
    }

    public int getStorage() {
        return storage;
    }

    public void setStorage(int storage) {
        this.storage = storage;
    }
}
